package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

// 点赞、评论、喜欢模块
public interface CommentService {


    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(ObjectId publishId,Long userId,Integer commentType);

    // 评论分页查询
    PageBeanVo findCommentByPage(ObjectId publishId,Integer commentType,Integer pageNum,Integer pageSize);

    // 查看对你评论人的信息
    PageBeanVo findUserCommentByPage(Long publishUserId,Integer commentType,Integer pageNum,Integer pageSize);
}
